home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
linux-ab.1
/
linux-abuse.1.1.0.tar
/
abuse-1.10
/
net.doc
< prev
next >
Wrap
Text File
|
1995-10-23
|
3KB
|
98 lines
ABUSE networking :
ABUSE works as client/server. This means one player runs as a
server and all others run as clients. The server player will pick
they game that all other players will play when they join in. This is
done by starting up with the -lsf option.
Starting a server :
----------------------------------------------------
abuse -lsf lisp/deathmat.lsp (death match abuse, every man to himself)
abuse -lsf addon/bgames/chess.lsp
abuse -lsf addon/bgames/checkers.lsp
abuse -lsf addon/bgames/connect4.lsp
abuse -lsf addon/bgames/othello.lsp
abuse -lsf addon/pong/pong.lsp
Sometimes a port may remain bound from a previous game, or be in use
by another program in which case the message "net driver : could not
bind socket to port 20202" will be displayed. You should specify an
alternate port to use as follows
abuse -lsf lisp/deathmat.lsp -port 4000
where 4000 is any abritrary number.
Connecting to a server :
----------------------------------------------------
abuse -net somewhere.someplace.net
Note : do not specify a -lsf, this information is automatically
obtained when connecting to a server. The load time of a game will be
considerably faster if you have all the same files as the server,
however if you don't you will automatically download the files you
don't have If you are playing over a slow network this may take a
long time.
If the server is not running on the standard port 20202 then you
must specify the port in the server name as follows :
abuse -net somewhere.someplace.net:4000
where 4000 is the port number the server is using.
Running a stand-alone fileserver
----------------------------------------------------
bash:/root/abuse/> undrv
(All files in the dir tree /root/abuse/* will be avialable to
anyone from this point on). If you wish to make ALL files available
to everyone say :
bash:/root/abuse/> undrv -bastard
This is NOT recommended as there are many files on your system that
outsiders should not be able to read (your mail, your password file,
etc). You should also be sure that there are no symbolic links to
sensative files/directories within the sub-dir tree where you run
abuse/undrv.
Programming with the ABUSE file system :
----------------------------------------------------
Filenames can specify not only the directory and filename where is a file is,
but also host. Example
(def_sound "//somewhere.someplace.net:4000/sfx/save05.wav")
this will fetch the file save05.wav from the server
somewhere.someplace.net (connecting on port 4000) in the directory
sfx/ (from the root directory where the file server/abuse server was
run).
Note : if the server is not running at this host the engine will pretend the
file does not exsists.
Problems
-----------------------------------------------------
make sure you have the files :
undrv, keydrv, (lnx_sdrv or sgi_sdrv) in you PATH.